package com.eddie.strategy;

/**
 * @author Eddie
 * @date 2022/08/08 13:44
 **/
public abstract class Duck {
    public Duck() {

    }

    public void quack() {
        System.out.println("鸭子嘎嘎叫~~~");
    }

    public void swim() {
        System.out.println("鸭子会游泳~~~");
    }

    public void fly() {
        System.out.println("鸭子会飞翔~~~");
    }

    /**
     * 显示鸭子信息
     */
    public abstract void display();
}
